<?php
session_start();
@$service1 = $_REQUEST["service1"];
@$rate11 = $_REQUEST["rate11"];
@$rate12 = $_REQUEST["rate12"];
@$rate13 = $_REQUEST["rate13"];
@$service2 = $_REQUEST["service2"];
@$rate21 = $_REQUEST["rate21"];
@$rate22 = $_REQUEST["rate22"];
@$rate23 = $_REQUEST["rate23"];
@$service3 = $_REQUEST["service3"];
@$rate31 = $_REQUEST["rate31"];
@$name = $_REQUEST["name"];
@$username = $_REQUEST["username"];
@$password = $_REQUEST["password"];
@$_SESSION['username'] = $username;
if ($_SESSION["username"] == true) {
?>
    <!DOCTYPE html>
    <html lang="en">

    <head>

        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <meta name="description" content="">
        <meta name="author" content="">

        <title>好先生 | 家政服务</title>
        <link rel="shortcut icon" href="img/favicon.ico" />
        <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
        <link rel="stylesheet" type="text/css" href="css/style.css">
        <script src="vendor/jquery/jquery.min.js"></script>
        <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
    </head>

    <body>

        <div class="container-fluid register">
            <br>
            <div class="row">
                <div class="col-md-3 register-left">
                    <img src="img/logo.png" alt="" />
                    <?php
                    echo "<h1>$name</h1>";
                    ?>
                    <br><br>
                    <h3 style="font-family: Catamaran">Credit card details will be used for future transactions and it can be updated anytime.</h3>
                </div>
                <div class="col-md-9 register-right">
                    <ul class="nav nav-tabs nav-justified" id="myTab" role="tablist">
                        <li class="nav-item">
                            <a class="nav-link" href="contact.html">帮助</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="w_logout.php">退出</a>
                        </li>
                    </ul>
                    <div class="tab-content" id="myTabContent">
                        <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
                            <br>
                            <h2 class="register-heading">添加银行卡
                                - 信息</h2>
                            <form action="w_login_logic_card_verify.php" method="post">
                                <div class="register-form">
                                    <div class="row">
                                        <div class="col-md-3"></div>
                                        <div class="col-md-6 ">
                                            <div class="form-group">
                                                <select name="card_type" required="required" class="form-control">
                                                    <option value="" selected disabled>--选择银行卡选项--</option>
                                                    <option value="china_band">中国银行</option>
                                                    <option value="create_band">建设银行</option>
                                                    <option value="come_band">招商银行</option>
                                                    <option value="nong_band">农商银行</option>
                                                </select>
                                            </div>
                                            <div class="form-group">
                                                <input type="number" name="card_no" class="form-control" placeholder="卡号 *" required />
                                            </div>
                                            <div class="form-group">
                                                <input type="text" name="c_name" class="form-control" placeholder="银行卡上的名字*" required />
                                            </div>
                                            <div class="form-group">
                                                到期日期*&nbsp;
                                                <div class="row">
                                                    <div class="col-6">
                                                        <select name="month" required="required" class="form-control">
                                                            <option value="" selected disabled>--选择月--</option>
                                                            <option>1</option>
                                                            <option>2</option>
                                                            <option>3</option>
                                                            <option>4</option>
                                                            <option>5</option>
                                                            <option>6</option>
                                                            <option>7</option>
                                                            <option>8</option>
                                                            <option>9</option>
                                                            <option>10</option>
                                                            <option>11</option>
                                                            <option>十2</option>
                                                        </select>
                                                    </div>
                                                    <div class="col-6">
                                                        <select name="year" required="required" class="form-control">
                                                            <option value="" selected disabled>--选择年--</option>
                                                            <option>2018</option>
                                                            <option>2019</option>
                                                            <option>2020</option>
                                                            <option>2021</option>
                                                            <option>2022</option>
                                                            <option>2023</option>
                                                            <option>2024</option>
                                                            <option>2025</option>
                                                        </select>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="form-group">
                                                <input type="number" name="cvv" class="form-control" placeholder="输入银行卡安全码*" value="" required="" />
                                            </div>
                                        </div>
                                    </div>
                                    <input type="hidden" name="name" value="<?php echo $name; ?>">
                                    <input type="hidden" name="username" value="<?php echo $username; ?>">
                                    <input type="hidden" name="password" value="<?php echo $password; ?>">
                                    <input type="hidden" name="service1" value="<?php echo $service1; ?>">
                                    <input type="hidden" name="rate11" value="<?php echo $rate11; ?>">
                                    <input type="hidden" name="rate12" value="<?php echo $rate12; ?>">
                                    <input type="hidden" name="rate13" value="<?php echo $rate13; ?>">
                                    <input type="hidden" name="service2" value="<?php echo $service2; ?>">
                                    <input type="hidden" name="rate21" value="<?php echo $rate21; ?>">
                                    <input type="hidden" name="rate22" value="<?php echo $rate22; ?>">
                                    <input type="hidden" name="rate23" value="<?php echo $rate23; ?>">
                                    <input type="hidden" name="service3" value="<?php echo $service3; ?>">
                                    <input type="hidden" name="rate31" value="<?php echo $rate31; ?>">
                                    <div class="row">
                                        <div class="col-md-1"></div>
                                        <div class="col-md-7">
                                            <div class="form-group">
                                                <input type="submit" class="btnRegister" value="下一步 >>" />
                                            </div>

                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        <footer>
            <div class="container">
                <p>&copy; 好先生 家政服务. 版权所有.</p>
                <ul class="list-inline">
                    <li class="list-inline-item">
                        <a href="#">隐私</a>
                    </li>
                    <li class="list-inline-item">
                        <a href="#">条款</a>
                    </li>
                </ul>
            </div>
        </footer>
    </body>

    </html>
<?php
} else {
    header("location:workerlogin.html");
}

?>